
package com.zjp.mg.model;

import lombok.Getter;
import lombok.Setter;

/**
 * 车库
 */

@Getter
@Setter
public class GarageVo {
    private Long garageId;

    private String type;

    private String garageName;

    private Double longitude;   //经度
    private Double latitude; //维度

    private String address;

    public GarageVo(Garage garage) {
        this.garageId = garage.getGarageId();
        this.garageName = garage.getGarageName();
        this.address = garage.getAddress();
        this.longitude = garage.getLocation().getX();
        this.latitude = garage.getLocation().getY();
        this.type = garage.getLocation().getType();
    }
}
